﻿Imports System.Drawing

''' <summary>
''' 移动代价示例
''' </summary>
''' <remarks></remarks>
Public Class SimpleCostGetter
    Implements ICostGetter

    Function GetCost(ByVal currentNodeLoaction As Point, ByVal moveDirection As CompassDirections) As Integer Implements ICostGetter.GetCost
        Select Case moveDirection
            Case 0
                Return 0
            Case 1
                Return 1
            Case 2
                Return 2
            Case 3
                Return 3
            Case Else
                Return 4
        End Select
    End Function

End Class
